{{useCss "/app-pages/css/admin/main.scss"}}
<div class="main">
    <table>
        <tr>
            <td colspan="3">
                <b>{{admin.name}}</b>(AID：{{admin.id}})
            </td>
        </tr>
        <tr>
            <td>统计信息：</td>
            <td>帖子数 {{$Cache.admin.info.totalpoat||0}}</td>
            <td>版块数 {{$Cache.admin.info.totalmodule||0}}</td>
        </tr>
        <tr>
            <td></td>
            <td>发帖数 {{admin.totalpost||0}}</td>
            <td>发布版块 {{admin.totalmodule||0}}</td>
        </tr>
        <tr>
            <td colspan="3">
                上次登陆时间：{{#Time admin.logintime,"YYYY-MM-DD HH:mm:ss"}}
            </td>
        </tr>
    </table>
    <div class="content">
        <div class="item">
            <b>修改密码</b>
        </div>
        <div class="item">
            请输入旧密码：
            <input bind-input="{{'$Cache.admin.main.password.oldpassword'}}" type="password" placeholder="请输入旧密码" />
        </div>
        <div class="item">
            请输入新密码：
            <input bind-input="{{'$Cache.admin.main.password.newpassword'}}" type="password" placeholder="请输入新密码" />
        </div>
        <div class="item">
            <input type="text" class="short" maxlength="6" bind-input="{{'$Cache.admin.main.password.verifycode'}}" bind-value="{{$Cache.admin.main.password.verifycode}}" placeholder="请输入验证码" />
            <button disabled="{{$Cache.admin.main.password_verifycodelimit}}" event-click="{{$Cache.admin.main.password_verifycodelimit?'':'$Event.admin.main.get_password_verifycode'}}">{{$Cache.admin.main.password_verifycodelimit?$Cache.admin.main.password_verifycodelimit+"秒后重新获取验证码":"获取验证码"}}</button>
        </div>
        <div class="item">
            <button event-click="{{'$Event.admin.main.changepassword'}}">提交</button>
        </div>
    </div>
    <table class="last">
        <tr>
            <td>
                昵称：
                <input bind-input="{{'admin.name'}}" bind-value="{{admin.name}}" placeholder="请输入昵称" type="text" />
            </td>
            <td>
                手机：
                <input bind-input="{{'admin.mobile'}}" bind-value="{{admin.mobile}}" placeholder="请输入手机号" type="text" />
            </td>
            <td>
                邮箱：
                <input bind-input="{{'admin.email'}}" bind-value="{{admin.email}}" placeholder="请输入邮箱" type="text" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <input type="text" class="short" maxlength="6" bind-input="{{'admin.verifycode'}}" bind-value="{{admin.verifycode}}" placeholder="请输入验证码" />
                <button disabled="{{$Cache.admin.main.info_verifycodelimit}}" event-click="{{$Cache.admin.main.info_verifycodelimit?'':'$Event.admin.main.get_info_verifycode'}}">{{$Cache.admin.main.info_verifycodelimit?$Cache.admin.main.info_verifycodelimit+"秒后重新获取验证码":"获取验证码"}}</button>
            </td>
        </tr>
        <tr>
        	<td colspan="3">
        		<button event-click="{{'$Event.admin.main.changeadmininfo'}}">修改信息</button>
        	</td>
        </tr>
    </table>
</div>
